<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QJoysticks: SDL_Joysticks Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">QJoysticks
   </div>
   <div id="projectbrief">A simple way to use joysticks with your Qt application</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-slots">Private Slots</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="class_s_d_l___joysticks-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SDL_Joysticks Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Translates SDL events into <code><a class="el" href="class_q_joysticks.html" title="Manages the input systems and communicates them with the application. ">QJoysticks</a></code> events.  
 <a href="class_s_d_l___joysticks.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_s_d_l___joysticks_8h_source.html">SDL_Joysticks.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for SDL_Joysticks:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_s_d_l___joysticks.png" usemap="#SDL_5FJoysticks_map" alt=""/>
  <map id="SDL_5FJoysticks_map" name="SDL_Joysticks_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr class="memitem:a0817af463d8b74b6f8a128ab0b756617"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_d_l___joysticks.html#a0817af463d8b74b6f8a128ab0b756617">rumble</a> (const <a class="el" href="struct_q_joystick_rumble.html">QJoystickRumble</a> &amp;request)</td></tr>
<tr class="separator:a0817af463d8b74b6f8a128ab0b756617"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a>
Signals</h2></td></tr>
<tr class="memitem:ae656da330b5d0617f08f299fe572c0f3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae656da330b5d0617f08f299fe572c0f3"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>countChanged</b> ()</td></tr>
<tr class="separator:ae656da330b5d0617f08f299fe572c0f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac886889fc2e54efe322e404d86a17aad"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac886889fc2e54efe322e404d86a17aad"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>POVEvent</b> (const <a class="el" href="struct_q_joystick_p_o_v_event.html">QJoystickPOVEvent</a> &amp;event)</td></tr>
<tr class="separator:ac886889fc2e54efe322e404d86a17aad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a53ce3d003d6e06cf547917b490b065bf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a53ce3d003d6e06cf547917b490b065bf"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>axisEvent</b> (const <a class="el" href="struct_q_joystick_axis_event.html">QJoystickAxisEvent</a> &amp;event)</td></tr>
<tr class="separator:a53ce3d003d6e06cf547917b490b065bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb47237cf195d9749a7713aa20719fde"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adb47237cf195d9749a7713aa20719fde"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>buttonEvent</b> (const <a class="el" href="struct_q_joystick_button_event.html">QJoystickButtonEvent</a> &amp;event)</td></tr>
<tr class="separator:adb47237cf195d9749a7713aa20719fde"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac0930e4bab06bd2126ecc4947063bf67"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_d_l___joysticks.html#ac0930e4bab06bd2126ecc4947063bf67">SDL_Joysticks</a> ()</td></tr>
<tr class="separator:ac0930e4bab06bd2126ecc4947063bf67"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1c923a52a0124a9b32b74f2062b9a17"><td class="memItemLeft" align="right" valign="top">QList&lt; <a class="el" href="struct_q_joystick_device.html">QJoystickDevice</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_d_l___joysticks.html#af1c923a52a0124a9b32b74f2062b9a17">joysticks</a> ()</td></tr>
<tr class="separator:af1c923a52a0124a9b32b74f2062b9a17"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-slots"></a>
Private Slots</h2></td></tr>
<tr class="memitem:aeebfc5dd6916cf38d83f201e46c792b7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_d_l___joysticks.html#aeebfc5dd6916cf38d83f201e46c792b7">update</a> ()</td></tr>
<tr class="separator:aeebfc5dd6916cf38d83f201e46c792b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe4b422b9e03b4f115480caf314fa82e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_d_l___joysticks.html#afe4b422b9e03b4f115480caf314fa82e">configureJoystick</a> (const SDL_Event *event)</td></tr>
<tr class="separator:afe4b422b9e03b4f115480caf314fa82e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:aafabca5d253f657329f8a3f4736639d1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_d_l___joysticks.html#aafabca5d253f657329f8a3f4736639d1">getDynamicID</a> (int id)</td></tr>
<tr class="separator:aafabca5d253f657329f8a3f4736639d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5eda0a8b0b73400efbefee517b41414"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_q_joystick_device.html">QJoystickDevice</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_d_l___joysticks.html#aa5eda0a8b0b73400efbefee517b41414">getJoystick</a> (int id)</td></tr>
<tr class="separator:aa5eda0a8b0b73400efbefee517b41414"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae823ac5e1a3a7f0e40cc618595a75c0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_q_joystick_p_o_v_event.html">QJoystickPOVEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_d_l___joysticks.html#aae823ac5e1a3a7f0e40cc618595a75c0">getPOVEvent</a> (const SDL_Event *sdl_event)</td></tr>
<tr class="separator:aae823ac5e1a3a7f0e40cc618595a75c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70a16ab5425e036fbba1c3435754f6c3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_q_joystick_axis_event.html">QJoystickAxisEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_d_l___joysticks.html#a70a16ab5425e036fbba1c3435754f6c3">getAxisEvent</a> (const SDL_Event *sdl_event)</td></tr>
<tr class="separator:a70a16ab5425e036fbba1c3435754f6c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a946e14671d949b329847471f9dbfe6ca"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_q_joystick_button_event.html">QJoystickButtonEvent</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_d_l___joysticks.html#a946e14671d949b329847471f9dbfe6ca">getButtonEvent</a> (const SDL_Event *sdl_event)</td></tr>
<tr class="separator:a946e14671d949b329847471f9dbfe6ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a19b238e8347ba7707f8fa0112618bb7c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a19b238e8347ba7707f8fa0112618bb7c"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>m_tracker</b></td></tr>
<tr class="separator:a19b238e8347ba7707f8fa0112618bb7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae75dd3cc5ac17d34149cdfb43900c703"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae75dd3cc5ac17d34149cdfb43900c703"></a>
QList&lt; <a class="el" href="struct_q_joystick_device.html">QJoystickDevice</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>m_joysticks</b></td></tr>
<tr class="separator:ae75dd3cc5ac17d34149cdfb43900c703"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Translates SDL events into <code><a class="el" href="class_q_joysticks.html" title="Manages the input systems and communicates them with the application. ">QJoysticks</a></code> events. </p>
<p>This class is in charge of managing and operating real joysticks through the SDL API. The implementation procedure is the same for every operating system.</p>
<p>The only thing that differs from each operating system is the backup mapping applied in the case that we do not know what mapping to apply to a joystick.</p>
<dl class="section note"><dt>Note</dt><dd>The joystick values are refreshed every 20 milliseconds through a simple event loop. </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="ac0930e4bab06bd2126ecc4947063bf67"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">SDL_Joysticks::SDL_Joysticks </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Load a different generic/backup mapping for each operating system. </p>

<p>References <a class="el" href="class_s_d_l___joysticks.html#aeebfc5dd6916cf38d83f201e46c792b7">update()</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="afe4b422b9e03b4f115480caf314fa82e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SDL_Joysticks::configureJoystick </td>
          <td>(</td>
          <td class="paramtype">const SDL_Event *&#160;</td>
          <td class="paramname"><em>event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Checks if the joystick referenced by the <em>event</em> can be initialized. If not, the function will apply a generic mapping to the joystick and attempt to initialize the joystick again. </p>

<p>Referenced by <a class="el" href="class_s_d_l___joysticks.html#aeebfc5dd6916cf38d83f201e46c792b7">update()</a>.</p>

</div>
</div>
<a class="anchor" id="a70a16ab5425e036fbba1c3435754f6c3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_q_joystick_axis_event.html">QJoystickAxisEvent</a> SDL_Joysticks::getAxisEvent </td>
          <td>(</td>
          <td class="paramtype">const SDL_Event *&#160;</td>
          <td class="paramname"><em>sdl_event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Reads the contents of the given <em>event</em> and constructs a new <code><a class="el" href="struct_q_joystick_axis_event.html" title="Represents an axis event that can be triggered by a joystick. ">QJoystickAxisEvent</a></code> to be used with the <code><a class="el" href="class_q_joysticks.html" title="Manages the input systems and communicates them with the application. ">QJoysticks</a></code> system. </p>

<p>References <a class="el" href="struct_q_joystick_axis_event.html#ab27e65287e8cd45c5d815a7601d038c5">QJoystickAxisEvent::axis</a>, and <a class="el" href="class_s_d_l___joysticks.html#aa5eda0a8b0b73400efbefee517b41414">getJoystick()</a>.</p>

<p>Referenced by <a class="el" href="class_s_d_l___joysticks.html#aeebfc5dd6916cf38d83f201e46c792b7">update()</a>.</p>

</div>
</div>
<a class="anchor" id="a946e14671d949b329847471f9dbfe6ca"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_q_joystick_button_event.html">QJoystickButtonEvent</a> SDL_Joysticks::getButtonEvent </td>
          <td>(</td>
          <td class="paramtype">const SDL_Event *&#160;</td>
          <td class="paramname"><em>sdl_event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Reads the contents of the given <em>event</em> and constructs a new <code><a class="el" href="struct_q_joystick_button_event.html" title="Represents a button event that can be triggered by a joystick. ">QJoystickButtonEvent</a></code> to be used with the <code><a class="el" href="class_q_joysticks.html" title="Manages the input systems and communicates them with the application. ">QJoysticks</a></code> system. </p>

<p>References <a class="el" href="struct_q_joystick_button_event.html#a0b53a31e37287a605b3d2caa1c7ecb29">QJoystickButtonEvent::button</a>, and <a class="el" href="class_s_d_l___joysticks.html#aa5eda0a8b0b73400efbefee517b41414">getJoystick()</a>.</p>

<p>Referenced by <a class="el" href="class_s_d_l___joysticks.html#aeebfc5dd6916cf38d83f201e46c792b7">update()</a>.</p>

</div>
</div>
<a class="anchor" id="aafabca5d253f657329f8a3f4736639d1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int SDL_Joysticks::getDynamicID </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns a joystick ID compatible with the <code><a class="el" href="class_q_joysticks.html" title="Manages the input systems and communicates them with the application. ">QJoysticks</a></code> system. SDL assigns an ID to each joystick based on the order that they are attached, but it does not decrease the ID counter when a joystick is removed.</p>
<p>As noted earlier, the <code><a class="el" href="class_q_joysticks.html" title="Manages the input systems and communicates them with the application. ">QJoysticks</a></code> maintains an ID system similar to the one used by a <code>QList</code>, since it eases the operation with most Qt classes and widgets. </p>

<p>Referenced by <a class="el" href="class_s_d_l___joysticks.html#aa5eda0a8b0b73400efbefee517b41414">getJoystick()</a>.</p>

</div>
</div>
<a class="anchor" id="aa5eda0a8b0b73400efbefee517b41414"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_q_joystick_device.html">QJoystickDevice</a> * SDL_Joysticks::getJoystick </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>id</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the josytick device registered with the given <em>id</em>. If no joystick with the given <em>id</em> is found, then the function will warn the user through the console. </p>

<p>References <a class="el" href="struct_q_joystick_device.html#a484aa9ef817012b2e151f6cb12bc0a08">QJoystickDevice::blacklisted</a>, <a class="el" href="class_s_d_l___joysticks.html#aafabca5d253f657329f8a3f4736639d1">getDynamicID()</a>, <a class="el" href="struct_q_joystick_device.html#a77fdca9a6e30ef69eddbfb8e725d706a">QJoystickDevice::id</a>, <a class="el" href="struct_q_joystick_device.html#abc862e4add9e46d5126b6b5bee78b7af">QJoystickDevice::name</a>, <a class="el" href="struct_q_joystick_device.html#afcdb1f8f0e2ac8aab631a97c818b16a4">QJoystickDevice::numAxes</a>, <a class="el" href="struct_q_joystick_device.html#ad972d8e1406fbf968751293ca2303f5b">QJoystickDevice::numButtons</a>, and <a class="el" href="struct_q_joystick_device.html#abdbb6c26f5656fccb2cd3afe442005e7">QJoystickDevice::numPOVs</a>.</p>

<p>Referenced by <a class="el" href="class_s_d_l___joysticks.html#a70a16ab5425e036fbba1c3435754f6c3">getAxisEvent()</a>, <a class="el" href="class_s_d_l___joysticks.html#a946e14671d949b329847471f9dbfe6ca">getButtonEvent()</a>, <a class="el" href="class_s_d_l___joysticks.html#aae823ac5e1a3a7f0e40cc618595a75c0">getPOVEvent()</a>, and <a class="el" href="class_s_d_l___joysticks.html#af1c923a52a0124a9b32b74f2062b9a17">joysticks()</a>.</p>

</div>
</div>
<a class="anchor" id="aae823ac5e1a3a7f0e40cc618595a75c0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_q_joystick_p_o_v_event.html">QJoystickPOVEvent</a> SDL_Joysticks::getPOVEvent </td>
          <td>(</td>
          <td class="paramtype">const SDL_Event *&#160;</td>
          <td class="paramname"><em>sdl_event</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Reads the contents of the given <em>event</em> and constructs a new <code><a class="el" href="struct_q_joystick_p_o_v_event.html" title="Represents an POV event that can be triggered by a joystick. ">QJoystickPOVEvent</a></code> to be used with the <code><a class="el" href="class_q_joysticks.html" title="Manages the input systems and communicates them with the application. ">QJoysticks</a></code> system. </p>

<p>References <a class="el" href="class_s_d_l___joysticks.html#aa5eda0a8b0b73400efbefee517b41414">getJoystick()</a>, and <a class="el" href="struct_q_joystick_p_o_v_event.html#a021def038c4be20e09b26a118e8c2464">QJoystickPOVEvent::pov</a>.</p>

<p>Referenced by <a class="el" href="class_s_d_l___joysticks.html#aeebfc5dd6916cf38d83f201e46c792b7">update()</a>.</p>

</div>
</div>
<a class="anchor" id="af1c923a52a0124a9b32b74f2062b9a17"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; <a class="el" href="struct_q_joystick_device.html">QJoystickDevice</a> * &gt; SDL_Joysticks::joysticks </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns a list with all the registered joystick devices </p>

<p>References <a class="el" href="class_s_d_l___joysticks.html#aa5eda0a8b0b73400efbefee517b41414">getJoystick()</a>.</p>

</div>
</div>
<a class="anchor" id="a0817af463d8b74b6f8a128ab0b756617"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SDL_Joysticks::rumble </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="struct_q_joystick_rumble.html">QJoystickRumble</a> &amp;&#160;</td>
          <td class="paramname"><em>request</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Based on the data contained in the <em>request</em>, this function will instruct the appropiate joystick to rumble for </p>

<p>References <a class="el" href="struct_q_joystick_device.html#a77fdca9a6e30ef69eddbfb8e725d706a">QJoystickDevice::id</a>, <a class="el" href="struct_q_joystick_rumble.html#a4f7a110e87e6e9ff22fca34a631cfb2e">QJoystickRumble::joystick</a>, <a class="el" href="struct_q_joystick_rumble.html#abde9faadc2c8c73c7709fd193ec12c1e">QJoystickRumble::length</a>, and <a class="el" href="struct_q_joystick_rumble.html#a8a7b1dff46e5135fd9504eb7579a5e91">QJoystickRumble::strength</a>.</p>

</div>
</div>
<a class="anchor" id="aeebfc5dd6916cf38d83f201e46c792b7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SDL_Joysticks::update </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span><span class="mlabel">slot</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Polls for new SDL events and reacts to each event accordingly. </p>

<p>References <a class="el" href="class_s_d_l___joysticks.html#afe4b422b9e03b4f115480caf314fa82e">configureJoystick()</a>, <a class="el" href="class_s_d_l___joysticks.html#a70a16ab5425e036fbba1c3435754f6c3">getAxisEvent()</a>, <a class="el" href="class_s_d_l___joysticks.html#a946e14671d949b329847471f9dbfe6ca">getButtonEvent()</a>, and <a class="el" href="class_s_d_l___joysticks.html#aae823ac5e1a3a7f0e40cc618595a75c0">getPOVEvent()</a>.</p>

<p>Referenced by <a class="el" href="class_s_d_l___joysticks.html#ac0930e4bab06bd2126ecc4947063bf67">SDL_Joysticks()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_s_d_l___joysticks_8h_source.html">SDL_Joysticks.h</a></li>
<li>SDL_Joysticks.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
